<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>登录</title>
<style type="text/css">
h1 {
	text-align: center;
	color: darkgoldenrod;
	margin-bottom: 60px;
}

#one {
	text-align: center;
}

th {
	font-family: arial;
	font-size: 20px;
}

table {
	margin-bottom: 11px;
}

#two {
	font-size: 25px;
	width: 300px;
	height: 45px;
	display: inline-block;
	color: cornflowerblue;
	background-color: burlywood;
	margin-right: -56px;
}

input {
	width: 300px;
	height: 30px;
	display: block;
	margin: 10px auto;
}
</style>
</head>

<body>
<%
	String error = (String)request.getAttribute("error");
	%>
	<h1>请登录</h1>
	<form name="form1" action="checklogin.jsp" method="get" id="one">
		<table align="center">
			<tr>
				<th>账号:</th>
				<td><input type="text" name="username" placeholder="手机/邮箱/用户名"></td>
			</tr>
			<tr>
				<th>密码:</th>
				<td><input type="text" name="pwd" placeholder="密码"></td>
			</tr>
		</table>
		<input type="submit" name="Submit" value="登录" id="two">
		 <p align="center"><font color="red"><%=error==null?"":error %></font></p>

	</form>
</body>

</html>